package dfbz.homework1;

public class Test08 {
    public static void main(String[] args) {
        Book b;
        Book book = new Book("No0003", "JavaWeb实战", "isbn387648797524",12,"2017-01-01");
        Book book2 = new Book("No0003", "JavaWeb实战", "isbn387648797524",58,"2017-01-01");
        Book book3 = new Book("No0003", "JavaWeb实战", "isbn387648797524",19,"2017-01-01");
        b = book.getPrice() > book2.getPrice() ? book.getPrice()> book3.getPrice()?book: book3: book2.getPrice()> book3.getPrice()?book2: book3;
        b.showBook();
    }
}
